<?php

namespace App\Models;

use App\Models\BaseModel;

class ReplenishmentLog extends BaseModel
{
    protected $table = 'replenishment_log';
    public $timestamps = false;


    public function getAll()
    {
        return $this->get()->toArray();
    }

    public function replenishmentGoods()
    {
        return $this->hasMany('App\Models\ReplenishmentGoods', 'replenishment_log_id', 'id');
    }
    public function adminer()
    {
        return $this->belongsTo('App\Models\Adminer', 'creater', 'id');
    }


}


